<%@page import="org.ddr.member.MemberVO"%>
<%@page import="org.ddr.member.dao.MemberDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%request.setCharacterEncoding("UTF-8");%>

<jsp:useBean id="member" scope="session" class ="org.ddr.member.MemberVO"/>
<jsp:setProperty name = "member" property="userid" param="id"/>
<jsp:setProperty name = "member" property="pw" param="pw"/>
<jsp:setProperty name = "member" property="age" param="age"/>
<%
	member.setName(request.getParameter("name"));
	member.setSex(request.getParameter("sex"));
	MemberVO vo = member;
	try{
		if(session.getAttribute("str").equals(request.getParameter("key").trim())){
// 			session.removeAttribute("str");
			MemberDAO.instance.registUser(vo);
	 	}
	}catch(Exception e){
%>
<jsp:forward page = "regist.jsp"/>
<%
 	}finally{
%>
<jsp:forward page = "boardlist.jsp"/>

<%	
 	}
%>